.Dd September 10, 2018
.Dt TCP 1
.Os TCP
.Sh NAME
.Nm tcp
.Nd trivially copy a file
.Sh SYNOPSIS
.Nm
.Ar source
.Ar target
.Sh DESCRIPTION
The
.Nm
utility copies the contents of the
.Ar source
to
.Ar target .
.Pp
If
.Ar target
is a directory,
.Nm
will copy
.Ar source
into this directory.
.Sh EXAMPLES
The following examples show common usage:
.Bd -literal -offset indent
tcp file1 file2
.Ed
.Pp
.Bd -literal -offset indent
tcp file1 dir
.Ed
.Pp
.Bd -literal -offset indent
tcp file1 dir/file2
.Ed
.Pp
.Bd -literal -offset indent
tcp file1 dir/subdir/subsubdir/file2
.Ed
.Sh EXIT STATUS
.Nm
exits 0 on success, and >0 if an error occurred.
.Sh SEE ALSO
.Xr tcpm 1 ,
.Xr lseek 2 ,
.Xr read 2 ,
.Xr write 2
.Sh NOTES
The code for the
.Nm
utility is, of course, well-formatted according to the guidelines found at
.Ar https://stevens.netmeister.org/631/style .
The program can be compiled using the
.Ar -Wall
and
.Ar -Werror
flags without any errors or warnings on a NetBSD 8.x
system.
.Sh HISTORY
The
.Nm
program was first assigned as the first programming assignment for the class CS765
.Dq Advanced Programming in the UNIX Environment
at Stevens Institute of Technology at least since around 2005.
.Sh BUGS
Well, let's see...
